/*
 * Project: com.mmall.product.provider.convert
 *
 * File Created at 2019-10-20
 *
 * Copyright 2019 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.mmall.product.provider.convert;

import com.mmall.product.api.bo.ProductBO;
import com.mmall.product.api.bo.ProductDetailBO;
import com.mmall.product.api.dto.ProductDetailDTO;
import com.mmall.product.provider.model.ProductDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author jianghucoding
 * @date 2019-10-20
 */
@Mapper
public interface ProductDetailConvert {

    ProductDetailConvert INSTANCE = Mappers.getMapper(ProductDetailConvert.class);

    @Mappings({})
    ProductDetailBO convert(ProductDO productDO);

    @Mappings({})
    ProductDO convert(ProductDetailDTO productDetailDTO);
}
